local addonName,ns = ...
local L = ns.L
local DB = ns.PlateColorDB
local SetLoaded--设置加载一次
ns.event("PLAYER_ENTERING_WORLD", function()
if SetLoaded then return end
SetLoaded = true
--分页6滚动框架
local ConFramescrollFrame6 = CreateFrame("ScrollFrame", nil, ns.tabframe6, "UIPanelScrollFrameTemplate")
ConFramescrollFrame6:SetPoint("TOPLEFT", ns.tabframe6, "TOPLEFT", 4, -5)
ConFramescrollFrame6:SetPoint("BOTTOMRIGHT", ns.tabframe6, "BOTTOMRIGHT", -30, 5)
--分页6滚动内容
local ConFrame6 = CreateFrame("Frame", nil, ConFramescrollFrame6)
ConFrame6:SetSize(670,480)
ConFramescrollFrame6:SetScrollChild(ConFrame6)
ns.Y[6] = 0	--设置起始位置


local titext1 = ns.AddSetTiText(ConFrame6,6,"")
local realltext = ns.AddSetTiText(ConFrame6,6,L["恢复插件默认设置"])
local realltextRe = ns.AddfuncButton(ConFrame6,realltext,L["重置所有设置"],470,nil,125)
realltextRe:HookScript("OnClick", function()
	PlateColorDB = DB
	ReloadUI()
end)
local titext2 = ns.AddSetTiText(ConFrame6,6,"")
local cvarltext = ns.AddSetTiText(ConFrame6,6,L["恢复禁用CVar设置"])
local cvarltextRe = ns.AddfuncButton(ConFrame6,cvarltext,L["恢复默认CVAR按钮"],470,nil,125)
cvarltextRe:HookScript("OnClick", function()
	PlateColorDB.disableCVarSet = true
	ns.ReSetCVar()
	ReloadUI()
end)

end)